package com.neusoft.neu24.nep.service.impl;

import com.neusoft.neu24.nep.entity.CommonResult;
import com.neusoft.neu24.nep.feignclient.RpcServiceProviderOpenFeignClient;
import com.neusoft.neu24.nep.service.INacosConsumerService;
import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.client.ServiceInstance;
import org.springframework.cloud.client.discovery.DiscoveryClient;
import org.springframework.stereotype.Service;
import org.springframework.web.reactive.function.client.WebClient;

import java.util.List;
import java.util.Random;

@Service
public class NacosConsumerServiceImpl implements INacosConsumerService {
    //    远程服务相当于一个Mapper，注入的Service中
    @Autowired
    private RpcServiceProviderOpenFeignClient rpcServiceProviderOpenFeignClient;


    @Override
    public String hello() {
        return null;
    }

    @Override
    public CommonResult selectAccountByWxid(String wxid) {

        CommonResult result = rpcServiceProviderOpenFeignClient.selectAcountByWxid(wxid);

        return result;
    }
}
